const API = 'http://101.201.83.57:8882'
const APIV2 = '/api/v2'
const APIV1 = '/api/v1'

module.exports = {
  name: 'AntD Admin',
  prefix: 'antdAdmin',
  footerText: 'Ant Design Admin  © 2017 zuiidea',
  logo: '/logo.png',
  iconFontCSS: '/iconfont.css',
  iconFontJS: '/iconfont.js',
  CORS: ['http://101.201.83.57:8882'],
  openPages: ['/login'],
  apiPrefix: '/api/v1',
  APIV1,
  APIV2,
  API,
  api: {
    userLogin: `${APIV1}/user/login`,
    userLogout: `${APIV1}/user/logout`,
    userInfo: `${APIV1}/userInfo`,
    users: `${APIV1}/users`,
    posts: `${APIV1}/posts`,
    user: `${APIV1}/user/:id`,
    dashboard: `${APIV1}/dashboard`,
    menus: `${APIV1}/menus`,
    weather: `${APIV1}/weather`,
    v1test: `${APIV1}/test`,
    v2test: `${APIV2}/test`,

    vip:`${API}/Consumer/getConsumer`,
    vipSaveConsumer:`${API}/Consumer/saveConsumer`,
    vipDeleteConsumer:`${API}/Consumer/consumerDelete`,
    vipConsumerSearchList:`${API}/Consumer/consumerSearchList`,
    vipConsumerDetails:`${API}/Consumer/consumerDetail`,
    vipConsumerUpdateInfo:`${API}/Consumer/consumerUpdateInfo`,
    vipConsumerUpdateOk:`${API}/Consumer/consumerUpdate`,
    vipConsumerAddPet:`${API}/Consumer/consumerAddPet`,
    vipConsumerUpdatePet:`${API}/Consumer/consumerUpdatePetInfo`,
    vipConsumerupdatePetOk:`${API}/Consumer/consumerUpdatePet`,
    vipConsumerAddCard:`${API}/Consumer/consumerAddCard`,
    vipConsumerAddMetercard:`${API}/Consumer/consumerAddMetercard`,
    vipConsumerVipCardHistory:`${API}/Consumer/consumerMetercardHistory`,
    vipConsumerdeletePet:`${API}/Consumer/deletePet`,
    vipConsumerHistoryBill:`${API}/Consumer/consumerHistoryBill`,
    vipConsumerBackCardOk:`${API}/Consumer/consumerReturncard`,
    vipGetConsumerCard:`${API}/Consumer/getConsumerCard`,
    vipGetCardType:`${API}/Consumer/getCardType`,
    vipGetMeterCardType:`${API}/Consumer/getMeterCardType`,


    salesGetCategory:`${API}/Commodity/getCategory`,
    salesGetCommodityByCategory:`${API}/Commodity/getCommodityByCategory`,
    salesGetCommodityByOne:`${API}/Commodity/getOneCommodity`,
    salesGetCommoditySearchCustomer:`${API}/Commodity/searchCustomer`,
    salesConsumerToday:`${API}/Consumer/consumerToday`,
    salesConsumerUpdateInfo:`${API}/consumer/consumerUpdateInfo`,
    salesEmployeeList:`${API}/Commodity/employeeList`,
    salesGetConsumerPetInfo:`${API}/Consumer/getConsumerPetInfo`,
    salesMeterCardList:`${API}/Consumer/meterCardList`,
    salesSettlement:`${API}/Commodity/settlement`,
    salesRecordBill:`${API}/Commodity/recordBill`,
    salesRedisCommodity:`${API}/Commodity/RedisCommodity`,
    salesSelectCommodityList:`${API}/Commodity/selectCommodityList`,
    salesAddCommodity:`${API}/Commodity/addCommodity`,
    salesHistoryCommodity:`${API}/Consumer/historyCommodity`,
    salesGetCommodityCode:`${API}/Commodity/getCommodityCode`,
    salesGetCategoryList:`${API}/Commodity/getCategoryList`,





    //商品设置
    SettingProductAddCategory:`${API}/Commoditygory/addCategory`,
    SettingGetOneCategory:`${API}/Commoditygory/getOneCategory`,
    SettingAddCategorytow:`${API}/Commoditygory/addCategorytow`,
    SettingGetCategory:`${API}/Commoditygory/getCategory`,
    SettingGetCommodityByCategory:`${API}/Commoditygory/getCommodityByCategory`,
    SettingDeleteCategory:`${API}/Commoditygory/deleteCategory`,
    SettingCategoryUpdateInfo:`${API}/Commoditygory/CategoryUpdateInfo`,
    SettingCategoryUpdateOk:`${API}/Commoditygory/CategoryUpdate`,
    SettingDleteleTableCommodity:`${API}/Commoditygory/deleteCommodity`,
    SettingAddCommodity:`${API}/Commodity/addCommodity`,
    SettingExportCommodity:`${API}/Commoditygory/exportCommodity`,
    SettingUpdateInfo:`${API}/Commoditygory/commodityUpdateInfo`,
    SettingUpdateInfoOk:`${API}/Commoditygory/commodityUpdate`,
    SettingPasteCategory:`${API}/Commoditygory/pasteCategory`,
    SettingPasteCommodity:`${API}/Commoditygory/pasteCommodity`,
    SettingSearchCategory:`${API}/Commoditygory/searchCategory`,
    SettingSearchCommodity:`${API}/Commoditygory/searchCommodity`,
    SettingGetCompany:`${API}/Commoditygory/getCompany`,

    //往来单位
    SettingCompanyList:`${API}/Company/CompanyList`,
    SettingAddCompany:`${API}/Company/addCompany`,
    SettingDeleteCompany:`${API}/Company/deleteCompany`,
    SettingCompanyUpdateInfo:`${API}/Company/CompanyUpdateInfo`,
    SettingCompanyUpdateOk:`${API}/Company/CompanyUpdate`,
    //宠物设置
    SettingSpeciesClassify:`${API}/Species/SpeciesClassify`,
    SettingSpeciesList:`${API}/Species/SpeciesList`,
    SettingGetSpeciesCode:`${API}/Species/getSpeciesCode`,
    SettingAddSpecies:`${API}/Species/addSpecies`,
    SettingDeleteSpecies:`${API}/Species/deleteSpecies`,
    SettingSpeciesUpdateInfo:`${API}/Species/SpeciesUpdateInfo`,
    SettingSpeciesUpdateOk:`${API}/Species/SpeciesUpdate`,

    //会员卡设置
    SettingAddCardtype:`${API}/Cardtype/addCardtype`,
    SettingCardtypeList:`${API}/Cardtype/CardtypeList`,
    SettingMeterCardTypeList:`${API}/Cardtype/MeterCardTypeList`,
    SettingAddMeterCardType:`${API}/Cardtype/addMeterCardType`,
    SettingCardtypeUpdateInfo:`${API}/Cardtype/CardtypeUpdateInfo`,
    SettingCardtypeUpdateOk:`${API}/Cardtype/CardtypeUpdate`,
    SettingMeterCardTypeUpdateInfo:`${API}/Cardtype/MeterCardTypeUpdateInfo`,
    SettingMeterCardTypeUpdateOk:`${API}/Cardtype/MeterCardTypeUpdate`,
    //折扣设置
    SettingGetCardType:`${API}/Commodityoff/getCardType`,
    SettingGetCategory:`${API}/Commodityoff/getCategory`,
    SettingGetCommodityByCategory:`${API}/Commodityoff/getCommodityByCategory`,
    SettingCommodityOff:`${API}/Commodityoff/updateOff`,
    SettingSearchCommodityOff:`${API}/Commodityoff/searchCommodityOff`,

    //商家信息
    SettingAddHospital:`${API}/Hospital/addHospital`,
    SettingHospitalUpdateInfo:`${API}/Hospital/HospitalUpdateInfo`,
    SettingHospitalUpdate:`${API}/Hospital/HospitalUpdate`,
    //SettingHospitalList:`${API}/Hospital/hospitalList`,

    //员工管理
    SettingEmployeeList:`${API}/Employee/EmployeeList`,
    SettingAddEmployee:`${API}/Employee/addEmployee`,
    SettingUpdateEmployee:`${API}/Employee/EmployeeUpdateInfo`,
    SettingUpdateEmployeeOk:`${API}/Employee/EmployeeUpdate`,
    SettingdeleteEmployee:`${API}/Employee/deleteEmployee`,

    //其他收支
    OtherGetChargeList:`${API}/Charge/chargeList`,
    OtherGetchargeAddInfo:`${API}/Charge/chargeAddInfo`,
    OtherGetchargeOutCode:`${API}/Charge/chargeOutCode`,
    OtherGetchargeAdd:`${API}/Charge/chargeAdd`,
    OtherDeleteCharge:`${API}/Charge/deleteCharge`,
    OtherChargeUpdateInfo:`${API}/Charge/chargeUpdate`,
    OtherChargeListBy:`${API}/Charge/chargeListBy`,
  },
  daySettle:{
      dailyAddInfo: `${API}/Daily/dailyAddInfo`,//获取上次日结单单号
      dailyAdd: `${API}/Daily/dailyAdd`,//新增日结单
      dailyList: `${API}/Daily/dailyList`,//日结单列表
      dailyDetail: `${API}/Daily/DailyDetail`,//日结单明细列表
      deleteDaily:`${API}/Daily/deleteDaily`//日结单删除
  },
    balanceMoney: {
        billTypeList: `${API}/Settlement/billTypeList`,//获取账单状态
        billForPetList: `${API}/Settlement/billForPetList`,//按照宠物读取未结算挂账单
        billForConsumerList: `${API}/Settlement/billForConsumerList`,//按照顾客显示未结算列表
        getConsumerBillDetail: `${API}/Settlement/getConsumerBillDetail`,//未结算/挂账单信息显示(顾客列表状态)
        getConsumerSubBillDetail: `${API}/Settlement/getConsumerBillDetail`,//查看子账单/未结算类别
        debtsOne: `${API}/Settlement/debtsOne`,//账单挂账信息
        getCategory: `${API}/Commodity/getCategory`,//获取用户信息
        consumerUpdateInfo: `${API}/Consumer/consumerUpdateInfo`,//获取用户详细信息
        refundConfim: `${API}/Settlement/refundConfim`,//确认退款
        getPetBillDetail: `${API}/Settlement/getPetBillDetail`,//根据宠物获取右边列表
        subbillView: `${API}/Settlement/subbillView`,//查看子账单
        hasSettlement: `${API}/Settlement/hasSettlement`,//已结算账单列表
        recordBill: `${API}/Settlement/recordBill`,//记录账单信息
        recordOrder: `${API}/Settlement/recordOrder`,//记录账单信息
        payment: `${API}/Settlement/payment`,//支付
        returnView: `${API}/Settlement/returnView`,//退款界面展示信息
        depositDetail: `${API}/Settlement/depositDetail`,//押金记录信息
        depositRecharge: `${API}/Settlement/depositRecharge`,//押金充值
        depositSurplus: `${API}/Settlement/depositSurplus`,//押金余额
        EmployeeList: `${API}/Employee/EmployeeList`,//获取员工列表
        consumerHistoryBill: `${API}/Consumer/consumerHistoryBill`,//获取员工列表
        consumerUpdateMetercardInfo: `${API}/Consumer/getConsumerCard`,//获取顾客次卡列表
        picesPayment:`${API}/Settlement/picesPayment`,//次卡结算
        billCount:`${API}/Settlement/billCount`,//按顾客展示获取账单信息
        getAllCategoy:`${API}/Commoditygory/getAllCategoy`,//获取类别
        getConsumerPetInfo:`${API}/Consumer/getConsumerPetInfo`,//获取会员信息
        consumerCardList:`${API}/Consumer/consumerCardList`,//获取会员卡信息

        cancelSettlementReturn:`${API}/Settlement/cancelSettlementReturn`,//取消结算
        cancelReturn:`${API}/Settlement/cancelReturn`,//取消退款，删除单据
    }
}
